package cn.chiship.bs.api.biz.pojo.vo;


import java.util.List;

/**
 * @author lijian
 */
public class PageVo {

    private List records;

    private Long total;

    private Long size;

    private Long current;

    private Long pages;

    public Long getFirstResult() {
        return (this.getCurrent() - 1) * this.size;
    }

    public List getRecords() {
        return records;
    }

    public void setRecords(List records) {
        this.records = records;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public Long getCurrent() {
        return current;
    }

    public void setCurrent(Long current) {
        this.current = current;
    }

    public Long getPages() {
        return pages;
    }

    public void setPages(Long pages) {
        this.pages = pages;
    }
}
